home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1999 October
/
PCWorld_1999-10_cd1.bin
/
Software
/
Servis
/
X-setup
/
_SETUP.1
/
XQ WinNT AutoShares 2.xpl
< prev
next >
Wrap
Text File
|
1999-06-12
|
2KB
|
69 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="6"
"COUNT"="2"
"UIPATH"="Network\Security\Shares"
"NAME"="Harddisc Shares"
"VERSION"="1.1"
"LANGUAGE"="VBScript"
"TEXT 1"="Enable auto HD shares (Workstation)"
"TEXT 2"="Enable auto HD shares (Server)"
"DESCRIPTION 1"="This option allows you to control if Windows should automatically create HD shares (C$, D$, E$ and so on)."
"DESCRIPTION 2"="Please select the option for your version of Windows NT, either Workstation or Server."
"DESCRIPTION 3"=""
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
sp="HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters\"
sV1="AutoShareWks"
sV2="AutoShareServer"
Sub Plugin_Initialize
If GetWinVer=2 then
i=RegReadValue(sP&sV1)
if i=1 or IsEmpty(i) then
SetUIElement 1,true
end if
i=RegReadValue(sP&sV2)
if i=1 or IsEmpty(i) then
SetUIElement 2,true
end if
else
Disable
end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
b=GetUIElement(1)
if b=true then
Call RegWriteValue(sP&sV1,1,2)
else
Call RegWriteValue(sP&sV1,0,2)
end if
b=GetUIElement(2)
if b=true then
Call RegWriteValue(sP&sV2,1,2)
else
Call RegWriteValue(sP&sV2,0,2)
end if
Restart
End Sub
Sub Plugin_Terminate
End Sub